package cn.edu.henu.team.bean;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobFile;
import cn.bmob.v3.datatype.BmobRelation;

public class post extends BmobObject {

    private String content;   //帖子内容
    private String topic;     //帖子话题
    private BmobFile image;   //帖子图片  目前只允许插入一张图片
    private _User userId;     //用户和帖子是一对一关系
    private String userOnlyId;//帖子所属者id
    private Integer praise;//点赞
    private BmobRelation likesId;//关联喜欢帖子的用户
    private Integer like_sum = 0;//收藏数量

    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPraise() {  return praise;   }
    public void setPraise(Integer praise) { this.praise = praise;  }

    public String getTopic() {
        return topic;
    }
    public void setTopic(String topic) {
        this.topic = topic;
    }

    public BmobFile getImage() {
        return image;
    }
    public void setImage(BmobFile image) {
        this.image = image;
    }

    public _User getUserId() {
        return userId;
    }
    public void setUserId(_User userId) {
        this.userId = userId;
    }

    public String getUserOnlyId() {
        return userOnlyId;
    }
    public void setUserOnlyId(String userOnlyId) {
        this.userOnlyId = userOnlyId;
    }

    public BmobRelation getLikesId() {
        return likesId;
    }
    public void setLikesId(BmobRelation likesId) {
        this.likesId = likesId;
    }

    public Integer getLike_sum() {
        return like_sum;
    }
    public void setLike_sum(Integer like_sum) {
        this.like_sum = like_sum;
    }

}
